public class Main {
    public static void main(String[] args) {
        Approver p1,p2,p3,meeting;
        p1 = new Director("四号角城的拉维克斯");
        p2 = new VicePresident("利维亚的杰洛特");
        p3 = new President("🐖派猎魔人");
        meeting = new Congress("董事会");

        p1.setSuccessor(p2);
        p2.setSuccessor(p3);
        p3.setSuccessor(meeting);


        PurchaseRequest pr1 = new PurchaseRequest(4,1,"购买铁剑");
        System.out.println(p1.processRequest(pr1));

        PurchaseRequest pr2 = new PurchaseRequest(60,2,"购买银剑");
        System.out.println(p1.processRequest(pr2));

        PurchaseRequest pr3 = new PurchaseRequest(160,3,"购买蜂蜜酒");
        System.out.println(p1.processRequest(pr3));

        PurchaseRequest pr4 = new PurchaseRequest(800,4,"购买白桃花");
        System.out.println(p1.processRequest(pr4));
    }

}
